package part1;

public class Viceprincipal extends Approver {
    public Viceprincipal(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() > 10000 && request.getPrice() <= 30000) {
            System.out.println(" 请求编号 id = " + request.getId() + "被副校长处理了");
        } else {
            approver.processRequest(request);
        }
    }
}
